package com.guigu.qingcheng.service.impl;

import com.guigu.qingcheng.mapper.StatisMapper;
import com.guigu.qingcheng.pojo.dto.BrowseCategory;
import com.guigu.qingcheng.pojo.dto.OrderBrowse;
import com.guigu.qingcheng.pojo.dto.ReturnOrderDto;
import com.guigu.qingcheng.pojo.vo.CategoryReportVo;
import com.guigu.qingcheng.service.StatisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StatisServiceImpl implements StatisService {
    @Autowired(required = false)
    private StatisMapper statisMapper;

    @Override
    public List<BrowseCategory> queryByBrowseOrder(CategoryReportVo categoryReportVo) {
        return statisMapper.queryOrderAndBrowse(categoryReportVo);
    }

    @Override
    public List<OrderBrowse> findAllOrderAndBrowse(CategoryReportVo categoryReportVo) {
        return statisMapper.findAllOrderAndBrowse(categoryReportVo);
    }

    @Override
    public List<ReturnOrderDto> findAllReturnOrder(CategoryReportVo categoryReportVo) {
        return statisMapper.findAllReturnOrder(categoryReportVo);
    }

    @Override
    public List<Map> findOrderSourceType(CategoryReportVo categoryReportVo) {
        return statisMapper.findSourceType(categoryReportVo);
    }
}
